function login(){
    let username = document.getElementById('u6_input').value;
    let pass = document.getElementById('u7_input').value;
    $.ajax({
        url:"http://localhost:12345/sys/login",
        type:"POST",
        datatype:"JSON",
        contentType:"application/json",
        data:JSON.stringify({username:username, password:pass}),
        success:function(req){
            if(req.success) {
                sessionStorage.setItem("token", req.obj.toString());
                window.location.href="http://localhost:12345/系统管理页面.html";
                confirm("登录成功");
            }else {
                confirm(req.msg);
            }
            //请求成功
        }
    });
}

